package com.cai.service;

import com.cai.entity.PageResult;
import com.cai.entity.QueryPageBean;
import com.cai.pojo.User;

import java.util.List;

public interface UserService {

    public User findUserByUsername(String username);
    //用户分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    public void add(User user, Integer[] roleIds);

    public void delete(Integer id);

    public User findUserById(Integer id);

    public List<Integer> findRoleIdsByUserId(Integer id);

    public void edit(User user, Integer[] roleIds);
}
